<template>
  <div class="discover">
    <nav>
      <h2>发现</h2>
      <div class="address-icon">
        <SearchIcon />
        <AddComponent />
      </div>
    </nav>

    <div class="one-cell" @click="goCicle">
      <i><img src="../assets/image/discover-img/px1.png" alt="" /></i>
      <div class="text">
        <p>朋友圈</p>
        <van-icon name="arrow" color="rgb(107,107,107)" />
      </div>
    </div>
    <div class="double-cell">
      <div class="top">
        <i><img src="../assets/image/discover-img/px2.png" alt="" /></i>
        <div class="top-tex" @click="videoShow()">
          <p>视频号</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
      <div class="bottom">
        <i><img src="../assets/image/discover-img/px3.png" alt="" /></i>
        <div class="bottom-text">
          <p>直播</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
    </div>
    <div class="double-cell">
      <div class="top">
        <i><img src="../assets/image/discover-img/px4.png" alt="" /></i>
        <div class="top-tex" @click="scanShow()">
          <p>扫一扫</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
      <div class="bottom">
        <i><img src="../assets/image/discover-img/px5.png" alt="" /></i>
        <div class="bottom-text">
          <p>摇一摇</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
    </div>
    <div class="double-cell">
      <div class="top">
        <i><img src="../assets/image/discover-img/px6.png" alt="" /></i>
        <div class="top-tex">
          <p>看一看</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
      <div class="bottom">
        <i><img src="../assets/image/discover-img/px7.png" alt="" /></i>
        <div class="bottom-text">
          <p>搜一搜</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
    </div>
    <!-- 附近 -->
    <div class="one-cell">
      <i><img src="../assets/image/discover-img/px8.png" alt="" /></i>
      <div class="text">
        <p>附近</p>
        <van-icon name="arrow" color="rgb(107,107,107)" />
      </div>
    </div>
    <div class="double-cell">
      <div class="top">
        <i><img src="../assets/image/discover-img/px9.png" alt="" /></i>
        <div class="top-tex">
          <p>购物</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
      <div class="bottom">
        <i><img src="../assets/image/discover-img/px10.png" alt="" /></i>
        <div class="bottom-text">
          <p>游戏</p>
          <van-icon name="arrow" color="rgb(107,107,107)" />
        </div>
      </div>
    </div>
    <!-- 小程序 -->
    <div class="one-cell">
      <i><img src="../assets/image/discover-img/px11.png" alt="" /></i>
      <div class="text">
        <p>小程序</p>
        <van-icon name="arrow" color="rgb(107,107,107)" />
      </div>
    </div>
  </div>
</template>

<script>
import AddComponent from "../components/AddComponent.vue";
import SearchIcon from "../components/SearchIcon.vue";

export default {
  
  components: {
    AddComponent,
    SearchIcon,
  },
  methods:{
     goCicle(){
      this.$router.push('/circle')
     },
          scanShow() {
            this.$router.push('/scan')
          },
          videoShow() {
            this.$router.push('/videonew')
          },

       },

};
</script>


<style lang="scss" scoped>
.discover {
  color: white;
  width: 100vw;
  height: 100vh;
  background-color: var(--theme-background-black);

  nav {
    position: relative;
    height: 45px;
    background-color:  rgb(17, 17, 17);
    color: white;
    text-align: center;
    line-height: 45px;

    .address-icon {
      width: 60px;
      position: absolute;
      right: 15px;
      top: 10px;
      display: flex;
      justify-content: space-between;
    }
  }

  .one-cell {
    display: flex;
    margin-top: 10px;
    background: var(--theme-cell-black);
    height: 34px;
    font-weight: 300;
    i {
      width: 34px;
      text-align: center;
      line-height: 34px;
      padding: 2px;
      img {
        width: 100%;
      }
    }
    .text {
      flex: 1;
      display: flex;
      justify-content: space-between;
      p {
        line-height: 34px;
        margin-left: 10px;
      }
      .van-icon-arrow {
        padding: 0;
      }
    }
  }
  .double-cell {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    height: 68px;
    background: var(--theme-cell-black);

    .top,
    .bottom {
      display: flex;
      flex: 1;
      height: 34px;
      i {
        width: 34px;
        text-align: center;
        line-height: 34px;
        padding: 2px;
        img {
          width: 100%;
        }
      }
      .top-tex,
      .bottom-text {
        display: flex;
        flex: 1;
        justify-content: space-between;
        border-bottom: 1px solid rgba(204, 203, 203, 0.1);
        line-height: 34px;
        text-align: center;
        height: 34px;
        p {
          margin-left: 10px;
        }
      }
      .bottom-text {
        border-bottom: 0;
      }
    }
  }
}
</style>